/*  Pokopom - Input Plugin for PSX/PS2 Emulators
 *  Copyright (C) 2012  KrossX
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

const u8 DUALSHOCK_ID[5][5] = {
	{0x00, 0x00, 0x02, 0x00, 0x0A},
	{0x00, 0x00, 0x00, 0x00, 0x14},
	{0x00, 0x02, 0x00, 0x00, 0x00}, 
	{0x00, 0x00, 0x04, 0x00, 0x00}, 
	{0x00, 0x00, 0x06, 0x00, 0x00}};

const u8 DUALSHOCK_MODEL[6] = {0x02, 0x02, 0x00, 0x02, 0x00, 0x00};


//Wireless DualShock2 controller
const u8 DUALSHOCK2_ID[5][5] = {
	{0x00, 0x01, 0x02, 0x00, 0x0A},
	{0x00, 0x01, 0x01, 0x01, 0x14},
	{0x00, 0x02, 0x00, 0x01, 0x00},
	{0x00, 0x00, 0x04, 0x00, 0x00},
	{0x00, 0x00, 0x07, 0x00, 0x00}};

const u8 DUALSHOCK2_MODEL[6] = {0x03, 0x02, 0x00, 0x02, 0x01, 0x00};


const u8 GUITARHERO_ID[5][5] = {
	{0x00, 0x01, 0x02, 0x00, 0x0A}, 
	{0x00, 0x01, 0x01, 0x01, 0x14}, 
	{0x00, 0x02, 0x00, 0x01, 0x00}, 
	{0x00, 0x00, 0x04, 0x00, 0x00}, 
	{0x00, 0x00, 0x07, 0x00, 0x00} };

const u8 GUITARHERO_MODEL[6] = {0x01, 0x02, 0x00, 0x02, 0x01, 0x00};


const u8 POLL_MASK_FULL[6] = {0xFF, 0xFF, 0x03, 0x00, 0x00, 0x5A};
const u8 WTF[6] = {0x00, 0x00, 0x02, 0x00, 0x00, 0x5A};



// Pad modes
enum ID
{
	ID_DIGITAL		= 0x41,
	ID_ANALOG_GREEN	= 0x53, //Dual stick fight mode on the DualAnalog controller
	ID_ANALOG_RED	= 0x73,
	ID_ANALOG_REDP	= 0x79, // Dualshock 2 analog mode + pressure
	ID_MULTITAP		= 0x80,
	ID_CONFIG		= 0xF3,
};

/*
enum ID 
{
	ID_DIGITAL = 0x41, 
	ID_ANALOG = 0x73,	
	ID_ANALOGJOYSTICK = 0x53, 
	ID_MOUSE = 0x12, 
	ID_NEGCON = 0x23, 
	ID_NASKA = 0x23, 
	ID_VOLUME = 0x23, 
	ID_JOGCON = 0xE3, 
	ID_MULTITAP = 0x80, 	
	ID_CONFIG = 0xF3, 
*/